"use strict";
const code = require("../errorCode.js");
const Controller = require("egg").Controller;
const moment = require('moment');

class File extends Controller {
  async upload(){
    const {ctx,app} = this;
    ctx.body = 'upload,'+ctx.params.sys+','+ctx.params.type
  }

  async download(){
    const {ctx,app} = this;
    ctx.body = 'download,'+ctx.params.sys+','+ctx.params.type
  }

  async preview(){
    const {ctx,app} = this;
    ctx.body = 'preview,'+ctx.params.sys+','+ctx.params.type+','+ctx.params.name
  }
}

module.exports = File;
